package com.dhecp.project.storage.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.dhecp.common.core.domain.AjaxResult;
import com.dhecp.project.storage.domain.DeliveryBox;
import com.dhecp.project.storage.domain.DeliveryBoxDetail;

public interface DeliveryBoxService {
	
    List<DeliveryBox> queryList(Map<String, Object> params) throws Exception;
    
    List<DeliveryBoxDetail> querySonListByBid(Map<String, Object> params) throws Exception;
    
    DeliveryBox queryFirstRecord(Map<String, Object> params) throws Exception;
    
    DeliveryBox queryByBid(@Param("bid")String bid);
    
    /**
     * 保存
     */
    AjaxResult saveData(Map<String, Object> params) throws Exception;


    /**
     * 审核
     * @param bid
     */
    AjaxResult updateState(String bid) throws Exception;


    /**
     * 回退
     * @param bid
     */
    AjaxResult refuse(String bid) throws Exception;

}
